package com.example.mideaoem.model;

/**
 * 除湿机功能类
 * @author Johnny
 *
 */
public class DeHumiFunctions {

	public static final int Motor_normal = 0;//没有无极风
	public static final int Motor_wuji = 1;//无极风
	public static final int Motor_Level1 = 2;//有风，无风
	public static final int Motor_Level2 = 3;//高，低
	public static final int Motor_Level3 = 4;//低，高，自动
	public static final int Motor_Level4 = 5;//低，中，高，自动
	public static final int Motor_Level5 = 6;//静音，低，中，高，自动
	public static final int Motor_Level6 = 7;//低，中，高
	
	public boolean Pumb = false;//水泵
	public boolean Anion = false;//负离子
	public boolean AutoDehumi = false;//自动除湿
	public boolean DryClothes = false;//干衣
	public int MotorType = 1;
	
	public void setAsDefault(){
		Pumb = true;
		Anion = true;
		AutoDehumi = true;
		DryClothes = true;
		MotorType = 5;
	}
	
	@Override
	public String toString() {
//		return new Gson().toJson(this);
		return "{\"Pumb\":"+Pumb+","+"\"MotorType\":"+MotorType+ ",\"Anion\":"+Anion+","+"\"AutoDehumi\":"+AutoDehumi+","+ "\"DryClothes\":"+DryClothes+"}";
	}
	
}
